package com.lzh.order.client;

import com.lzh.commonutils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@Component
@FeignClient(name = "service-ucenter")
public interface UserClient {
    //根据token获取用户信息
    @GetMapping("/user/getUserById")
    public com.lzh.commonutils.UserInfo getUserById(@RequestParam("userId") String userId);
}
